package com.example.demo.service.impl;

import com.example.demo.mapper.ScoreMapper;
import com.example.demo.pojo.Score;
import com.example.demo.service.IScoreService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

@Service("ScoreService")
public class ScoreServiceImpl implements IScoreService {

    @Resource
    private ScoreMapper ScoreDao;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        // TODO Auto-generated method stub
        return this.ScoreDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Score Score) {
        // TODO Auto-generated method stub
        return this.ScoreDao.insert(Score);
    }

    @Override
    public int insertSelective(Score Score) {
        // TODO Auto-generated method stub
        return this.ScoreDao.insertSelective(Score);
    }

    @Override
    public Score selectByPrimaryKey(Integer id) {
        // TODO Auto-generated method stub
        return this.ScoreDao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Score Score) {
        // TODO Auto-generated method stub
        return this.ScoreDao.updateByPrimaryKeySelective(Score);
    }

    @Override
    public int updateByPrimaryKey(Score Score) {
        // TODO Auto-generated method stub
        return this.ScoreDao.updateByPrimaryKey(Score);
    }

    @Override
    public List<Score> selectScore() {
        // TODO Auto-generated method stub
        return this.ScoreDao.selectScore();
    }

    @Override
    public List<Score> selectScoreByOpenid(String openid) {
        return this.ScoreDao.selectScoreByOpenid(openid);
    }

    @Override
    public Score selectScoreByOpenidLimit(String openid) {
        return this.ScoreDao.selectScoreByOpenidLimit(openid);
    }

    @Override
    public List<Score> selectScoreByIfc(String ifc) {
        return this.ScoreDao.selectScoreByIfc(ifc);
    }

    @Override
    public List<Score> selectScoreByOpenidGp(String openid) {
        return this.ScoreDao.selectScoreByOpenidGp(openid);
    }

    @Override
    public List<Score> selectScoreByTid() {
        return this.ScoreDao.selectScoreByTid();
    }

    @Override
    public List<Score> selectScoreByOpenidTid(String openid, Integer tid) {
        return this.ScoreDao.selectScoreByOpenidTid(openid, tid);
    }
}
